package org.zjt.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.zjt.domain.RegisteNodeData;
import org.zjt.domain.ZKConfig;

/**
 * Created by Administrator on 2017/4/13.
 */
//@Component
@ConfigurationProperties(prefix = "config", ignoreUnknownFields = false)
public class ApplicationProperties {

    @Value("${server.port:8080}")
    private Integer port;

    private String serverName;

    private RegisterConfig registerConfig ;

    private NettyConfig nettyConfig ;

    private String loadBalance ;


    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public RegisterConfig getRegisterConfig() {
        return registerConfig;
    }

    public void setRegisterConfig(RegisterConfig registerConfig) {
        this.registerConfig = registerConfig;
    }

    public NettyConfig getNettyConfig() {
        return nettyConfig;
    }

    public void setNettyConfig(NettyConfig nettyConfig) {
        this.nettyConfig = nettyConfig;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getLoadBalance() {
        return loadBalance;
    }

    public void setLoadBalance(String loadBalance) {
        this.loadBalance = loadBalance;
    }
}
